/**
 * Title: FileTransferInfo.java
 * Description:
 * Copyright: Copyright (c) 2008
 * Company:深圳彩讯科技有限公司
 * Author 罗旭东 (hi@luoxudong.com)
 * Date 2013-8-15 下午4:57:26
 * Version 1.0 
 */
package com.luoxudong.phonenumber.service.net.http.filetransfer.vo;

import com.luoxudong.phonenumber.service.database.annotations.DbFields;

/** 
 * ClassName: FileTransferInfo
 * Description:文件传输信息
 * Create by 罗旭东
 * Date 2013-8-15 下午4:57:26
 */
public class FileTransferInfo {
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	@DbFields(autoIncrement="true")
	private int id = 0;
	
	/**
	 * 用户编号
	 */
	@DbFields(columnName="user_id")
	private String userId = null;
	
	/**
	 * 中间件文件ID
	 */
	@DbFields(columnName="file_id")
	private String fileId = null;
	
	/**
	 * 父目录ID
	 */
	@DbFields(columnName="parent_id")
	private String parentId = null;
	
	/**
	 * 下载url
	 */
	@DbFields(columnName="url")
	private String url = null;
	
	/**
	 * 本地地址
	 */
	@DbFields(columnName="local_path")
	private String localPath = null;
	
	/**
	 * 服务器文件相对路径,上传的时候使用
	 */
	@DbFields(columnName="remote_path")
	private String remotePath = null;
	
	/**
	 * 显示文件名
	 */
	@DbFields(columnName="display_name")
	private String displayName = null;
	
	/**
	 * 任务来源 1:个人盘 2:群组盘 3:企业盘
	 */
	@DbFields(columnName="task_src")
	private int taskFrom = 0;
	
	/**
	 * 任务类型  1:上传 2:下载
	 */
	@DbFields(columnName="task_type")
	private int taskType = 0;
	
	/**
	 * 任务状态 1:就绪 2:进行 3:暂停 4:完成 5:失败
	 */
	@DbFields(columnName="task_status")
	private int taskStatus = 1;
	
	
	/**
	 * 下载源(1：网盘  2： 共享 3： 历史版本) 必填
	 */
	@DbFields(columnName="download_source")
	private String downloadSource = null;
	
	/**
	 * 已传输文件大小
	 */
	@DbFields(columnName="transferred_size")
	private long transferredSize = 0;

	/**
	 * 文件大小
	 */
	@DbFields(columnName="file_size")
	private long fileSize = 0;
	
	/**
	 * 文件版本号
	 */
	@DbFields(columnName="file_version")
	private long fileVersion = 0;
	
	/**
	 * 预留字段
	 */
	@DbFields(columnName="attr1")
	private String reserved1 = null;
	
	/**
	 * 预留字段
	 */
	@DbFields(columnName="attr2")
	private int reserved2 = 0;
	
	/**
	 * 预留字段
	 */
	@DbFields(columnName="attr3")
	private long reserved3 = 0;
	
	/**
	 * 创建时间
	 */
	@DbFields(columnName="create_time")
	private long createTime = 0;
	
	/**
	 * 修改时间
	 */
	@DbFields(columnName="modify_time")
	private long modifyTime = 0;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	public String getLocalPath() {
		return localPath;
	}

	public void setLocalPath(String localPath) {
		this.localPath = localPath;
	}

	public String getRemotePath() {
		return remotePath;
	}

	public void setRemotePath(String remotePath) {
		this.remotePath = remotePath;
	}

	public int getTaskFrom() {
		return taskFrom;
	}

	public void setTaskFrom(int taskFrom) {
		this.taskFrom = taskFrom;
	}

	public int getTaskType() {
		return taskType;
	}

	public void setTaskType(int taskType) {
		this.taskType = taskType;
	}

	public int getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(int taskStatus) {
		this.taskStatus = taskStatus;
	}

	public String getDownloadSource() {
		return downloadSource;
	}

	public void setDownloadSource(String downloadSource) {
		this.downloadSource = downloadSource;
	}

	public long getTransferredSize() {
		return transferredSize;
	}

	public void setTransferredSize(long transferredSize) {
		this.transferredSize = transferredSize;
	}

	public long getFileSize() {
		return fileSize;
	}

	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}

	public long getFileVersion() {
		return fileVersion;
	}

	public void setFileVersion(long fileVersion) {
		this.fileVersion = fileVersion;
	}

	public String getReserved1() {
		return reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public int getReserved2() {
		return reserved2;
	}

	public void setReserved2(int reserved2) {
		this.reserved2 = reserved2;
	}

	public long getReserved3() {
		return reserved3;
	}

	public void setReserved3(long reserved3) {
		this.reserved3 = reserved3;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public long getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(long modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
}
